package com.design.boot.common.exception;

import lombok.Data;

/**
 * @author kakayubei
 * @description
 * @date 2021/7/31 12:04
 */
@Data
public class BaseException extends Exception{
    private int code;
    private String msg;

    public BaseException() {
        super();
        this.code = 99999;
        this.msg = "服务异常，请联系开发人员";
    }

    public BaseException(int code, String msg) {
        super();
        this.code = code;
        this.msg = msg;
    }
}
